package com.hncu.overload;

public class Demo1overload {
    public static void main(String[] args) {
        int num1 = 1;
        int num2 = 1;
        System.out.println(compare(num1,num2));
    }
    public static boolean compare(int num1,int num2){
        return num1 == num2;
    }
    public static boolean compare(byte num1,byte num2){
        return num1 == num2;
    }
    public static boolean compare(short num1,short num2){
        return num1 == num2;
    }
    public static boolean compare(long num1,long num2){
        return num1 == num2;
    }
}
